﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using WorkFlowSystem.Business;

namespace WorkFlowSystem
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            WorkFlowSystem.Common.Logger.SetLogPath();

            LoginUi login_ui = new LoginUi();
            login_ui.ShowDialog();
            if (login_ui.DialogResult == DialogResult.OK)
            {
                HomeUi home_ui = new HomeUi();
                Application.Run(home_ui);
            }

        }
    }
}
